package com.hibase.core.mybatis.registrar;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.config.BeanDefinitionHolder;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.context.annotation.ClassPathBeanDefinitionScanner;

import java.util.Set;

/**
 * 扫描mapper文件所在包
 *
 * @author hufeng
 * @date 2019/05/21
 */
@Slf4j
public class MapperClassScanner extends ClassPathBeanDefinitionScanner {

    public MapperClassScanner(BeanDefinitionRegistry registry) {
        super(registry);
    }

    @Override
    protected Set<BeanDefinitionHolder> doScan(String... basePackages) {
        return super.doScan(basePackages);
    }
}
